package xyz.poke.business.tool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 搜索记录
 * </p>
 *
 * @author 迫壳
 * @since 2024-03-02
 */
@TableName("t_search_history")
public class SearchHistory implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 业务code
     */
    private String searchCode;

    private String content;

    /**
     *  创建时间
     */
    private LocalDateTime gmtCreated;

    /**
     * 是否删除 1-是 0-否
     */
    private Boolean isDel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSearchCode() {
        return searchCode;
    }

    public void setSearchCode(String searchCode) {
        this.searchCode = searchCode;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(LocalDateTime gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "SearchHistory{" +
        "id=" + id +
        ", searchCode=" + searchCode +
        ", content=" + content +
        ", gmtCreated=" + gmtCreated +
        ", isDel=" + isDel +
        "}";
    }
}
